package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.StQuestion;
import com.example.demo.service.StQuestionService;
import com.example.demo.mapper.StQuestionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StQuestionServiceImpl extends ServiceImpl<StQuestionMapper, StQuestion>
    implements StQuestionService{

    public <T> String parseListToStr2(List<T> list){
        StringBuffer sb = new StringBuffer();
        list.stream().forEach(str->{
            sb.append(str).append(",");
        });
        sb.deleteCharAt(sb.length()-1);
        return sb.toString();
    }

}




